package com.jxw.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListAdapter;
import android.widget.ListView;
import com.jxw.adapter.QuanXianAdapter;
import com.jxw.launcher.R;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/* loaded from: classes.dex */
public class QuanXianFragment extends Fragment {
    private QuanXianAdapter adapter;
    private ListView listView;
    private List<Map<String, Object>> list = new ArrayList();
    private String[] sets = {"安卓平台"};

    @Override // android.support.v4.app.Fragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        View inflate = layoutInflater.inflate(R.layout.quanxianfragment, viewGroup, false);
        this.listView = (ListView) inflate.findViewById(R.id.listView);
        for (int i = 0; i < this.sets.length; i++) {
            HashMap hashMap = new HashMap();
            hashMap.put("Set", this.sets[i]);
            hashMap.put("Check", Integer.valueOf((int) R.drawable.selectbox_nor));
            this.list.add(hashMap);
        }
        this.adapter = new QuanXianAdapter(getActivity(), this.list, R.layout.item_quanxian, new String[]{"Set", "Check"}, new int[]{R.id.tV, R.id.iBtn});
        this.listView.setAdapter((ListAdapter) this.adapter);
        return inflate;
    }
}
